package org.embedchat.database;

import java.util.List;

import org.embedchat.entity.ChatRoom;

public interface ChatRoomDAOInterface {
	
	/**
	 * Return chat room by chat room id
	 * @param chatRoomId
	 * @return
	 * @throws ItemNotFoundException
	 */
	ChatRoom findChatRoom(Long chatRoomId) throws ItemNotFoundException;

	/**
	 * Return all chat rooms from this server
	 * If zero rooms found - return 0
	 * @return
	 */
    List<ChatRoom> findAll();
}
